/**
 * @Author: 陈瑞鹏
 * @Date:   2022-12-13 19:06:54
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-12-15 11:14:52
 */
export default class treasureTp {

  public id: number; //宝箱id

  public name: string; 

  public iconUrl: string; //宝箱icon

  public desc: string; //宝箱描述

  public rewardArr: any[]; //宝箱奖励

  public init(val) {

    this.id = val.id;
    this.name = val.name;
    this.iconUrl = val.iconUrl;
    this.desc = val.desc;
    // console.log(val.rewardArr);
    this.rewardArr = JSON.parse(val.rewardArr);
  }
}